import Vue from 'vue'
import Router from 'vue-router'
//import HelloWorld from '@/components/HelloWorld'
import Login from '@/components/Login'
import ProductList from '@/components/productList'
import ProductDetail from '@/components/productDetail'
import ApplyNow from '@/components/applyNow'
import EleUi from '@/components/eleUi'

Vue.use(Router)

export default new Router({
  routes: [
    // {
    //   path: '/',
    //   name: 'HelloWorld',
    //   component: HelloWorld
    // }
    {
      path: '/login',
      name: 'Login',
      component: Login
    }, {
      path: '/productList',
      name: 'ProductList',
      component: ProductList
    }, {
      path: '/productDetail',
      name: 'ProductDetail',
      component: ProductDetail
    }, {
      path: '/applyNow',
      name: 'ApplyNow',
      component: ApplyNow
    }, {
      path: '/eleUi',
      name: 'EleUi',
      component: EleUi
    }, {
      path: '/',
      redirect: 'login'

    }
  ]
})